import requests
from config import RunConfig

def 新增院计划任务书(para):
    response = requests.post(
        url=RunConfig.url + "/plan/assignment/create",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 院计划任务书详情(para):
    response = requests.post(
        url=RunConfig.url + "/plan/assignment/info/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 院计划任务书删除(para):
    response = requests.post(
        url=RunConfig.url + "/plan/assignment/delete/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 修改院计划任务书(para):
    response = requests.post(
        url=RunConfig.url + "/plan/assignment/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 分页查询院计划任务书(para):
    response = requests.post(
        url=RunConfig.url + "/plan/assignment/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
